/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vasthu.api.service;

import com.vasthu.api.domain.BillInfo;
import com.vasthu.api.domain.ReturnedItem;
import com.vasthu.gui.VstTableItemSelectable;
import java.util.List;

/**
 *
 * @author moremada
 */
public interface BillInfoManagerService {

    public boolean insertBillInfo(BillInfo billInfo);

    public List<BillInfo> getSuspendedBillInfos(long userName);

    public boolean finalize(BillInfo billInfo);

    public boolean suspend(BillInfo billInfo);
    
    public boolean refund(List<ReturnedItem> returnedItems, long billId);

    /*
     * this is particularly used for return handling. returns null if no entry
     * exist for the given id.
     */
    public BillInfo getBillInfoByIdForGivenState(long billId, int state);
}
